package com.nation.domain;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by 凌 on 2017/11/21.
 */
@Entity
@Table(name = "T_Video", schema = "show_nation", catalog = "")
public class TVideo implements Serializable {
    private int id;
    private String country_code;
    private String title_video;
    private String video_file;
    private String video_code;

    public TVideo(){}
    public TVideo(String countryCode, String titleVideo, String videoFile, String videoCode) {
        this.country_code = countryCode;
        this.title_video = titleVideo;
        this.video_file = videoFile;
        this.video_code = videoCode;
    }

    @Id
    @Column(name = "id", nullable = false)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "country_code", nullable = false, length = 4)
    public String getCountryCode() {
        return country_code;
    }

    public void setCountryCode(String countryCode) {
        this.country_code = countryCode;
    }

    @Basic
    @Column(name = "title_video", nullable = false, length = 255)
    public String getTitleVideo() {
        return title_video;
    }

    public void setTitleVideo(String titleVideo) {
        this.title_video = titleVideo;
    }

    @Basic
    @Column(name = "video_file", nullable = false, length = 255)
    public String getVideoFile() {
        return video_file;
    }

    public void setVideoFile(String videoFile) {
        this.video_file = videoFile;
    }

    @Basic
    @Column(name = "video_code", nullable = false, length = 7)
    public String getVideoCode() {
        return video_code;
    }

    public void setVideoCode(String videoCode) {
        this.video_code = videoCode;
    }

}
